DataCollection | ComponentOne
C1.DataCollection Assembly / C1.DataCollection Namespace / C1GroupDataCollection<S> Class / InsertAsync Method
The index where the item will be inserted.
The item to be inserted.
The cancellation token.

In This Topic
    InsertAsync Method (C1GroupDataCollection<S>)
    In This Topic
    Inserts the specified item at the specified index in the collection.
    Syntax
    'Declaration
     
    Public Overrides Function InsertAsync( _
       ByVal index As Integer, _
       ByVal addedItem As S, _
       ByVal cancellationToken As CancellationToken _
    ) As Task(Of Integer)
    public override Task<int> InsertAsync( 
       int index,
       S addedItem,
       CancellationToken cancellationToken
    )

    Parameters

    index
    The index where the item will be inserted.
    addedItem
    The item to be inserted.
    cancellationToken
    The cancellation token.
    See Also